using UnityEngine;

public struct MRemotePosInfo
{
	public Vector3 playerPosition;

	public Vector3 ballPos;

	public float ballFlightTime;

	public int playerThatHitBall;

	public float receivedTimestamp;

	public float realTime;

	public int pingTime;

	public float framerateScale;

	public void Send(GGNetwork network)
	{
		network.BeginWrite(8);
		network.AddVector3(playerPosition);
		network.AddVector3(ballPos);
		network.AddFloat(ballFlightTime);
		network.AddInt(playerThatHitBall);
		network.AddFloat(realTime);
		network.AddInt(pingTime);
		network.AddFloat(framerateScale);
		network.EndWrite();
		network.Send(false, 1);
	}

	public void Deserialize(GGNetwork network)
	{
		playerPosition = network.GetVector3();
		ballPos = network.GetVector3();
		ballFlightTime = network.GetFloat();
		playerThatHitBall = network.GetInt();
		realTime = network.GetFloat();
		pingTime = network.GetInt();
		framerateScale = network.GetFloat();
		receivedTimestamp = Time.realtimeSinceStartup;
	}
}
